﻿using System;
using System.Collections.Generic;
using System.Data;
using Esint.Common.Model;
using Esint.JudicialAuction.Model;

namespace Esint.JudicialAuction.IDAL
{
    /// <summary>
    /// 模块名称： 数据访问接口层
    /// 作    者：谷明
    /// 生成日期：2020年03月02日
    /// 生成模板: Esint.Template.IDAL.IDAL_01 版
    /// 修改说明：
    /// </summary>
    public partial interface ISys_UserData:IBaseData
    {
        /// <summary>
        /// 根据用户名和密码获取用户实体
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="password"></param>
        /// <returns></returns>
        Sys_UserInfo GetUserModelByUserNameAndPwd(string userName, string password);

        /// <summary>
        /// 查询主列表（分页）
        /// </summary>
        /// <param name="userName"></param>
        /// <param name="cellphone"></param>
        /// <param name="userType"></param>
        /// <param name="status"></param>
        /// <returns></returns>
        ReturnTable GetMainList(string userName, string cellphone, string userType, string status, int pageSize, int pageIndex);

        /// <summary>
        /// 批量删除用户方法
        /// </summary>
        /// <param name="idList"></param>
        void DeleteUsers(List<string> idList);

        /// <summary>
        /// 启用禁用用户方法
        /// </summary>
        /// <param name="idList"></param>
        /// <param name="IsDisabled"></param>
        void DisabledUsers(List<string> idList, bool IsDisabled);
    }
}
